package com.yingma.common.controller;


import com.yingma.common.util.AjaxResult;
import com.yingma.system.entity.JcDriver;
import com.yingma.system.service.JcDriverService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * (JcDriver)表控制层
 *
 * @author makejava
 * @since 2020-03-24 20:21:17
 */
@RestController
@RequestMapping("jcDriver")
public class JcDriverController {
    /**
     * 司机 服务对象
     */
    @Resource
    private JcDriverService jcDriverService;

    @ApiOperation("查询司机信息")
    @RequestMapping(value = "/driverInfo",method = RequestMethod.POST)
    public AjaxResult getSearchDriverInfo(@ApiParam("司机名称") String name,@ApiParam("司机名称") String iphone1, @ApiParam("当前页数") Integer pageNum, @ApiParam("每页数量") Integer pageSize){

        List<JcDriver> list=jcDriverService.SearchDriverInfo(name,iphone1, pageNum, pageSize);
        return AjaxResult.success(list);
    }





}
